package com.ruoyi.project.demo.order.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.demo.arrange.domain.CourseArrange;
import com.ruoyi.project.demo.course.domain.Course;
import com.ruoyi.project.system.user.domain.User;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 学生预约对象 db_course_order
 *
 * @author demo
 * @date 2020-04-19
 */
public class CourseOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * null
     */
    private Long id;

    /**
     * 知识id
     */
    @Excel(name = "知识id")
    private Long arrangeId;

    /**
     * 学生id
     */
    @Excel(name = "学生id")
    private Long userId;
    private String code;
    private Course course;
    private User user;
    private String userName;
    private Integer num;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setArrangeId(Long arrangeId) {
        this.arrangeId = arrangeId;
    }

    public Long getArrangeId() {
        return arrangeId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("arrangeId", getArrangeId()).append("userId", getUserId()).append("createTime", getCreateTime()).toString();
    }
}
